// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fowo.api.common.annotaion.*;
import com.fowo.api.common.mybatis.handlers.SysFileListTypeHandler;
import com.fowo.api.sys.entity.SysFile;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * FbaShipmentProduct
 */
@DS("ds24")
@Getter
@Setter
@TableName(value = "fba_shipment_product", autoResultMap = true)
@Schema(title = "fba货件子表")
public class FbaShipmentProduct implements Serializable {

  /**
   * 所属fba货件
   */
  @TableField(value = "`parent_fba_shipment`")
  @JoinField(FbaShipment.class)
  @Schema(title = "所属fba货件")
  private Long parentFbaShipment;

  /**
   * 编号
   */
  @TableField(value = "`id`")
  @TableId(type = IdType.ASSIGN_ID)
  @Schema(title = "编号")
  private Long id;

  /**
   * 创建时间
   */
  @TableField(value = "`create_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "创建时间")
  private java.util.Date createTime;

  /**
   * 创建人
   */
  @TableField(value = "`create_user`")
  @Schema(title = "创建人")
  private Long createUser;

  /**
   * 更新时间
   */
  @TableField(value = "`last_update_time`")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  @Schema(title = "更新时间")
  private java.util.Date lastUpdateTime;

  /**
   * 更新人
   */
  @TableField(value = "`last_update_user`")
  @Schema(title = "更新人")
  private Long lastUpdateUser;

  /**
   * 删除标记
   */
  @TableField(value = "`del_flag`")
  @TableLogic
  @Schema(title = "删除标记")
  private Boolean delFlag;

  /**
   * 图片
   */
  @TableField(value = "`img`", typeHandler = SysFileListTypeHandler.class)
  @Schema(title = "图片")
  private List<SysFile> img;

  /**
   * MSKU
   */
  @TableField(value = "`msku`")
  @Schema(title = "MSKU")
  private String msku;

  /**
   * FNSKU
   */
  @TableField(value = "`fnsku`")
  @Schema(title = "FNSKU")
  private String fnsku;

  /**
   * 标题
   */
  @TableField(value = "`label`")
  @Schema(title = "标题")
  private String label;

  /**
   * ASIN
   */
  @TableField(value = "`asin`")
  @Schema(title = "ASIN")
  private String asin;

  /**
   * 父Asin
   */
  @TableField(value = "`parent_asin`")
  @Schema(title = "父Asin")
  private String parentAsin;

  /**
   * 品名
   */
  @TableField(value = "`product_name`")
  @JoinField(Product.class)
  @Schema(title = "品名")
  private Long productName;

  /**
   * SKU
   */
  @TableField(value = "`sku`")
  @Schema(title = "SKU")
  private String sku;

  /**
   * 申报量
   */
  @TableField(value = "`amount_declared`")
  @Schema(title = "申报量")
  private Integer amountDeclared;

  /**
   * 已发货
   */
  @TableField(value = "`quantity_shipped_local`")
  @Schema(title = "已发货")
  private Integer quantityShippedLocal;

  /**
   * 签收量
   */
  @TableField(value = "`quantity_received`")
  @Schema(title = "签收量")
  private Integer quantityReceived;

  /**
   * 申发差异
   */
  @TableField(value = "`shen_fa_difference`")
  @Schema(title = "申发差异")
  private Integer shenFaDifference;

  /**
   * 收发差异
   */
  @TableField(value = "`shou_fa_difference`")
  @Schema(title = "收发差异")
  private Integer shouFaDifference;

  /**
   * 申收差异
   */
  @TableField(value = "`shen_shou_difference`")
  @Schema(title = "申收差异")
  private Integer shenShouDifference;

  /**
   * 发货计划
   */
  @TableField(value = "`shipment_plan_sn`")
  @Schema(title = "发货计划")
  private String shipmentPlanSn;

  /**
   * 计划发货量
   */
  @TableField(value = "`plan_shioment`")
  @Schema(title = "计划发货量")
  private Integer planShioment;

  /**
   * 单箱数量
   */
  @TableField(value = "`quantity_per_carton`")
  @Schema(title = "单箱数量")
  private Integer quantityPerCarton;

  /**
   * 箱数
   */
  @TableField(value = "`carton_numbers`")
  @Schema(title = "箱数")
  private Integer cartonNumbers;

  /**
   * 数据来源 0：erp创建，1：亚马逊同步 (0 - erp创建; 1 - 亚马逊同步; )
   */
  @TableField(value = "`is_synchronous`")
  @Schema(title = "数据来源 0：erp创建，1：亚马逊同步")
  private String isSynchronous;

  /**
   * 剩余发货量
   */
  @TableField(value = "`residue_send_goods`")
  @Schema(title = "剩余发货量")
  private Integer residueSendGoods;

  /**
   * fnskuname
   */
  @TableField(value = "`fnskuname`")
  @Schema(title = "fnskuname")
  private String fnskuname;

  /**
   * title
   */
  @TableField(value = "`title`")
  @Schema(title = "title")
  private String title;

  /**
   * 店铺id
   */
  @TableField(value = "`shopid`")
  @Schema(title = "店铺id")
  private Long shopid;

  /**
   * fnsku
   */
  @TableField(value = "`fnsku_id`")
  @Schema(title = "fnsku")
  private Long fnskuId;
}
